package handlers

// CreateUserRequest 创建用户请求
type CreateUserRequest struct {
	Username string `json:"username" binding:"required" example:"johndoe"`
	Email    string `json:"email" binding:"required,email" example:"john@example.com"`
	Password string `json:"password" binding:"required" example:"password123"`
}

// UpdateUserRequest 更新用户请求
type UpdateUserRequest struct {
	Username string `json:"username,omitempty" example:"johndoe"`
	Email    string `json:"email,omitempty" binding:"omitempty,email" example:"john@example.com"`
	Password string `json:"password,omitempty" example:"newpassword123"`
}

// UserResponse 用户响应
type UserResponse struct {
	ID        int    `json:"id" example:"1"`
	Username  string `json:"username" example:"johndoe"`
	Email     string `json:"email" example:"john@example.com"`
	CreatedAt string `json:"created_at" example:"2025-01-04T22:03:14+08:00"`
}
